/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oi.eksekutif.domain;

import com.oi.eksekutif.util.StatusTagihan;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * Author   : Deny Prasetyo, S.T
 * Email    : jasoet87@gmail.com
 * Blog     : jasoet.wordpress.com
 * Twitter  : http://www.twitter.com/jasoet
 */
@Entity
@Table
public class Tagihan implements Serializable {

    @Id
    @GeneratedValue
    private Long id;
    @ManyToOne
    private JenisTagihan jenisTagihan;
    @ManyToOne
    private Pengemudi pengemudi;
    private int tagihan;
    private int tagihanTerbayar;
    private StatusTagihan status = StatusTagihan.BELUM;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public JenisTagihan getJenisTagihan() {
        return jenisTagihan;
    }

    public void setJenisTagihan(JenisTagihan jenisTagihan) {
        this.jenisTagihan = jenisTagihan;
    }

    public Pengemudi getPengemudi() {
        return pengemudi;
    }

    public void setPengemudi(Pengemudi pengemudi) {
        this.pengemudi = pengemudi;
    }

    public StatusTagihan getStatus() {
        return status;
    }

    public void setStatus(StatusTagihan status) {
        this.status = status;
    }

    public int getTagihan() {
        return tagihan;
    }

    public void setTagihan(int tagihan) {
        this.tagihan = tagihan;
    }

    public int getTagihanTerbayar() {
        return tagihanTerbayar;
    }

    public void setTagihanTerbayar(int tagihanTerbayar) {
        this.tagihanTerbayar = tagihanTerbayar;
    }
}
